<h1> 用户登录 </h1>
@if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<form method="post" action="{{ url('/admin/login') }}">
    {{ csrf_field() }}
    {{ method_field('POST') }}
    <input name="name" placeholder="用户名称" type="text">
    <input name="password" placeholder="密码" type="text">
    <input type="submit" value=" 确定">
</form>